﻿Begin{

    Write-Host "Begining script"

    function Get-ScriptDirectory {

        $Invocation = (Get-Variable MyInvocation -Scope 1).Value

        Split-Path $Invocation.MyCommand.Path

        }

    Import-Module GroupPolicy

    }

Process {

    Write-Host "Processing Script"

    Import-GPO -BackupGpoName 'Default Domain Policy' -TargetName 'Default Domain Policy' -Path (Get-ScriptDirectory)

    }

End {

    Write-Host "End Script"
    
    }
